package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.query.QueryForObject;
import cn.wolfcode.crm.service.IRecruitService;
import cn.wolfcode.crm.util.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("recruit")
public class RecruitController {
    @Autowired
    private IRecruitService recruitService;

    @RequestMapping("index")
    public  String  index(){
        return "recruit/list";
    }
    @RequestMapping("list")
    @ResponseBody
    public PageResult list(QueryForObject qo){
        return recruitService.query(qo);
    }
}
